time sampling method